package com.xintonghua.bussiness.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 版权：成都匠心网络科技有限公司
 * 作者：万先毅
 * 包名：com.wanxy.homebusinesss.model.entity
 * 时间：2019-07-03
 * 描述：
 */
public class CheckBean implements Parcelable {

    /**
     * status : 0
     * msg : null
     * uploadPath : null
     * result : {"name":"妈妈菜商家-vivo","vs":"4","url":"https://www.sina.com.cn/","ud":"http://gdown.baidu.com/data/wisegame/85faaef3f6ab3a29/baidushoujizhushou_16797094.apk"}
     */

    private int status;
    private String msg;
    private String uploadPath;
    private ResultBean result;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ResultBean implements Parcelable {
        /**
         * name : 妈妈菜商家-vivo
         * vs : 4
         * url : https://www.sina.com.cn/
         * ud : http://gdown.baidu.com/data/wisegame/85faaef3f6ab3a29/baidushoujizhushou_16797094.apk
         */

        private String name;
        private String vs;
        private String url;
        private String ud;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getVs() {
            return vs;
        }

        public void setVs(String vs) {
            this.vs = vs;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getUd() {
            return ud;
        }

        public void setUd(String ud) {
            this.ud = ud;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.name);
            dest.writeString(this.vs);
            dest.writeString(this.url);
            dest.writeString(this.ud);
        }

        public ResultBean() {
        }

        protected ResultBean(Parcel in) {
            this.name = in.readString();
            this.vs = in.readString();
            this.url = in.readString();
            this.ud = in.readString();
        }

        public static final Creator<ResultBean> CREATOR = new Creator<ResultBean>() {
            @Override
            public ResultBean createFromParcel(Parcel source) {
                return new ResultBean(source);
            }

            @Override
            public ResultBean[] newArray(int size) {
                return new ResultBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.status);
        dest.writeString(this.msg);
        dest.writeString(this.uploadPath);
        dest.writeParcelable(this.result, flags);
    }

    public CheckBean() {
    }

    protected CheckBean(Parcel in) {
        this.status = in.readInt();
        this.msg = in.readString();
        this.uploadPath = in.readString();
        this.result = in.readParcelable(ResultBean.class.getClassLoader());
    }

    public static final Creator<CheckBean> CREATOR = new Creator<CheckBean>() {
        @Override
        public CheckBean createFromParcel(Parcel source) {
            return new CheckBean(source);
        }

        @Override
        public CheckBean[] newArray(int size) {
            return new CheckBean[size];
        }
    };
}
